package net.qujoy.springboot.starter.controller;

import net.qujoy.springboot.starter.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("starter")
public class StarterController {

    @RequestMapping("index")
    @ResponseBody
    public User index() {
        return new User("Jim", 18);
    }

}
